/**   
 * @文件名称: BaseContentEntity.java
 * @类路径: com.tdcms.cms.manage.entity
 * @描述: TODO
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @时间：2013-7-12 下午02:37:00
 * @版本：V1.0   
 */

package com.lxj.cms.manage.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.lxj.core.entity.SYSBaseEntity;

/**
 * @类功能说明：内容
 * @类修改者：
 * @修改日期：
 * @修改说明：
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @创建时间：2013-7-12 下午02:37:00
 * @版本：V1.0
 */
@Entity
@Table(name = "cms_content")
public class CMSContentEntity extends SYSBaseEntity {
	private static final long serialVersionUID = -6696234959278555188L;
	// 栏目
	private CMSColumnEntity columnInfo;
	// 标题
	private String contentTitle;
	// 简短标题
	private String contentShortTitle;
	// 标题颜色
	private String contentTitleColer;
	// Tag标签
	private String tagLabel;
	// 摘要
	private String infoSummary;
	// 作者
	private String infoAuthor;
	// 来源
	private String infoSource;
	// 浏览权限
	private String browsePermissions;
	// 内容类型 (0:普通 1: 图文 2:焦点 3:头条)
	private int contentType;
	// 指定模板
	private String specifyTemplate;
	// 推荐(0:不推荐 1：推荐)
	private String recommend;
	// 状态 0：草稿 1：待审核 2：审核通过 3：审核不通过
	private int infoState;
	// 附件
	private List<CMSAttachmentEntity> attachments;
	// 多媒体
	private String multimedia;
	// 内容
	private String infoContent;
	// 标题图
	private CMSImgaeEntity titleImage;
	// 图片集
	private List<CMSImgaeEntity> photoGallerys;

	public CMSColumnEntity getColumnInfo() {
		return columnInfo;
	}

	public void setColumnInfo(CMSColumnEntity columnInfo) {
		this.columnInfo = columnInfo;
	}

	public String getContentTitle() {
		return contentTitle;
	}

	public void setContentTitle(String contentTitle) {
		this.contentTitle = contentTitle;
	}

	public String getContentShortTitle() {
		return contentShortTitle;
	}

	public void setContentShortTitle(String contentShortTitle) {
		this.contentShortTitle = contentShortTitle;
	}

	public String getContentTitleColer() {
		return contentTitleColer;
	}

	public void setContentTitleColer(String contentTitleColer) {
		this.contentTitleColer = contentTitleColer;
	}

	public String getTagLabel() {
		return tagLabel;
	}

	public void setTagLabel(String tagLabel) {
		this.tagLabel = tagLabel;
	}

	public String getInfoSummary() {
		return infoSummary;
	}

	public void setInfoSummary(String infoSummary) {
		this.infoSummary = infoSummary;
	}

	public String getInfoAuthor() {
		return infoAuthor;
	}

	public void setInfoAuthor(String infoAuthor) {
		this.infoAuthor = infoAuthor;
	}

	public String getInfoSource() {
		return infoSource;
	}

	public void setInfoSource(String infoSource) {
		this.infoSource = infoSource;
	}

	public int getContentType() {
		return contentType;
	}

	public void setContentType(int contentType) {
		this.contentType = contentType;
	}

	public String getSpecifyTemplate() {
		return specifyTemplate;
	}

	public void setSpecifyTemplate(String specifyTemplate) {
		this.specifyTemplate = specifyTemplate;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	@JoinColumn(name = "attachment_id")
	public List<CMSAttachmentEntity> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<CMSAttachmentEntity> attachments) {
		this.attachments = attachments;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	@JoinColumn(name = "image_id")
	public List<CMSImgaeEntity> getPhotoGallerys() {
		return photoGallerys;
	}

	public void setPhotoGallerys(List<CMSImgaeEntity> photoGallerys) {
		this.photoGallerys = photoGallerys;
	}

	public String getMultimedia() {
		return multimedia;
	}

	public void setMultimedia(String multimedia) {
		this.multimedia = multimedia;
	}

	@Column(columnDefinition = "TEXT ")
	public String getInfoContent() {
		return infoContent;
	}

	public void setInfoContent(String infoContent) {
		this.infoContent = infoContent;
	}

	@OneToOne(fetch = FetchType.LAZY)
	public CMSImgaeEntity getTitleImage() {
		return titleImage;
	}

	public void setTitleImage(CMSImgaeEntity titleImage) {
		this.titleImage = titleImage;
	}

	public String getBrowsePermissions() {
		return browsePermissions;
	}

	public void setBrowsePermissions(String browsePermissions) {
		this.browsePermissions = browsePermissions;
	}

	public int getInfoState() {
		return infoState;
	}

	public void setInfoState(int infoState) {
		this.infoState = infoState;
	}

}
